package com.fwzc.giuseppe.fragment;

import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.widget.Toast;

public class BasicFragment extends Fragment {
	private Toast toast;

	protected void popNews(String content) {
		if (null == toast) {
			toast = Toast.makeText(getActivity(), content, Toast.LENGTH_SHORT);
		} else {
			toast.setText(content);
		}
		toast.setGravity(Gravity.CENTER, 0, 0);
		toast.show();
	}
}
